package com.yl.auth.controller;

import com.yl.auth.mapper.JiaShuMapper;
import com.yl.auth.model.entity.JiaShu;
import com.yl.auth.service.JiaShuService;
import com.yl.common.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "老人信息小程序")
@RestController
@RequestMapping("admin/jiashu/laorenxinxi")
public class LaorenxinxiXCXController {
    @Resource
    private JiaShuService jiaShuService;
    @Resource
    private JiaShuMapper jiaShuMapper;

    @ApiOperation("/老人信息小程序全查")
    @GetMapping("/getLR/{id}")
    public Result getLR(@PathVariable Integer id) {
        JiaShu jiaShu = jiaShuService.getLR(id);
        return Result.ok(jiaShu);
    }
}
